<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- 此方式会导致加载速度变慢，因为需要加载多个script文件 -->
    <div>第三种：组件化</div>
    <div id='box'></div>
    <script src="index.js"></script>
</body>
</html>